package com.dowhere.com.dowhere.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单控制器
 * @author 周谦
 * @date 2020/7/1 0001 13:33
 **/
@RestController
public class OrderController {

    @Value("${server.port}")
    private String port;

    @RequestMapping("/orderTest")
    public String orderTest(){
        return "this is order";
    }

    @RequestMapping("/say")
    public String say(String name){
        return "你好,"+ name + ",端口:"+port;
    }
}
